package com.bang.ticket.service;

import com.bang.ticker.service.HelloService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Auther: Bang
 * @Date: 2019/11/26 21:04
 * @Description:
 */
@Component
@Service(version = "${demo.service.version}")
public class HelloServiceImpl implements HelloService {

    @Value("${dubbo.application.name}")
    private String serviceName;

    @Override
    public String sayHello(String name) {
        return String.format("[%s] : Hello, %s", serviceName, name);
    }


}
